#ifndef CONTROLADOR_H
#define CONTROLADOR_H

#include <qt4/Qt/qobject.h>
#include <qt4/Qt/qtcpserver.h>
#include <qt4/Qt/qtcpsocket.h>
#include <qt4/Qt/qdebug.h>
#include <QByteArray>
#include <QDataStream>
#include <QThread>
#include <QVector>
#include "threadtratacliente.h"
#include "minicontrolador.h"

class Controlador : public QObject
{
    Q_OBJECT
public:
    void startServer();
    explicit Controlador(QObject *parent = 0);

        QTcpServer  *tcpServer;
        QTcpSocket  *tcpSocket;

        MiniControlador  * mini;

        QVector<ThreadTrataCliente *> * vetorDeThread;
signals:

public slots:
        void novoCliente();

};

#endif // CONTROLADOR_H
